package com.jhgsys.internal.sypq.entity;

import lombok.*;
import org.jetbrains.annotations.NotNull;

import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class ScheduleLine  implements Comparable<ScheduleLine> {
    Date startTime;
    Date endTime;



    @Override
    public int compareTo(@NotNull ScheduleLine o) {
        if(this.startTime.getTime()<o.getStartTime().getTime()){
            return -1;
        }else {
            return 1;
        }
    }
}
